<?php
use_javascript(url_for("js/setup.js"));
use_javascript(url_for("js/tabs.js"));
?>

<span id="button">
    <ul id="button">
        <li class="ui-state-default ui-corner-all ui-allow-hover">
            <a href="<?php echo url_for("view/raids") ?>">
                <span class="ui-icon ui-icon-seek-first"></span> Back
            </a>
        </li>
    </ul>
</span>
<h2 class="playername ui-widget-header ui-corner-all"><?php echo $raidinfo->getScheduledDate() ?></h2>
<span id="points" class="ui-widget ui-helper-clearfix ui-state-default ui-corner-all ui-allow-hover">Points: <?php echo $points ?></span>
<span id="points" class="ui-widget ui-helper-clearfix ui-state-default ui-corner-all ui-allow-hover">Gain: <?php echo $gain ?></span>
<span id="points" class="ui-widget ui-helper-clearfix ui-state-default ui-corner-all ui-allow-hover">Loss: <?php echo $loss ?></span>
<br />
<div id="tabsAjax">
    <ul>
        <li><a href="#tabsAjax-player">Players Attended</a></li>
        <li><a href="#tabsAjax-itemplayer">Items</a></li>
        <li><a href="#tabsAjax-point">Points</a></li>
    </ul>
    <?php
    foreach ($tabs as $value => $tab)
    {
        include_partial('tab/'.$tab['tab'], array('tab' => $tab, 'url_for' => url_for("@view_raid?raidslug=".$raidinfo->getRaid()->getSlug()."&scheduled_date=".$raidinfo->getScheduledDate())));
    }
    ?>
</div>
